#运算符重载
class Calculator(object):
    def _init_(self,number):    #记录数值
        self.number = number
    def _add_(self,other):      #重载运算符+
        self.number = self.number + other
        return self.number
    def _sub_(self,other):      #重载运算符-
        self.number = self.number - other
        return self.number
    def _mul_(self,other):      #重载运算符*
        self.number = self.number * other
        return self.number   
    def _truediv_(self,other):  #重载运算符/
        self.number = self.number / other
        return self.number 

calculator = Calculator(10)
print(calculator + 5)
print(calculator - 5)
print(calculator * 5)
print(calculator / 5)
